<?php

return array(
// '配置项'=>'配置值'
    
    'LAYOUT_NAME' => 'default/layout',

    'URL_ROUTER_ON' => true,
    'URL_ROUTE_RULES' => array(
        
        'User/LoginCheck' => 'User/loginCheck',
        
        'User/doLogin' => 'User/doLogin',
        
        'User/Regist' => 'User/Regist',
        
        'User/doRegist' => 'User/doRegist',
        
        'User/issueFind' => 'User/issueFind',
        
        'User/Cook/:rem/:data' => 'User/Cook',
        
        'User/doFind' => 'User/doFind',
        
        '/^.*\/(?![lL][Oo][Gg][Ii][Nn]$).*$/' =>
            function() {
                $a = md5(md5(cookie('a')) . md5(cookie('b') . cookie('a')) . md5(cookie('b')));
                if ($a == cookie('c')){
                }
                else {
                    $_SERVER['PATH_INFO'] = '/User/nologin';
                }
                
                //一定要返回false继续匹配路由 否者页面会在这里停止不动
                return false;
            },
    ),
);
